// 用来管理所有的请求接口

import service from "./request";

// 权限列表
export const GetRights = (type)=>{
    return service({
        method:'get',
        url:'/rights/'+type,
    })
}

export const GetRoles = (type)=>{
    return service({
        method:'get',
        url:'/roles/',
    })
}
export const AddRoles = (data)=>{
    return service({
        method:'post',
        url:'/roles',
        data 
    })
}


